package com.heima.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.admin.dtos.AdUserDto;
import com.heima.model.admin.dtos.ResponseResult;
import com.heima.model.admin.pojos.AdUser;

import java.lang.reflect.InvocationTargetException;

public interface AdUserService extends IService<AdUser> {
    /**
     * 登录功能
     * @param dto
     * @return
     */
    ResponseResult login(AdUserDto dto) throws InvocationTargetException, IllegalAccessException;



    /**
     * 后端用户注册
     * @param user
     * @return
     */
    public ResponseResult register(AdUser user);
}
